<?php /* Smarty version 2.6.16, created on 2012-05-01 03:57:33
         compiled from user_update.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'user_update.tpl', 140, false),array('modifier', 'inarray', 'user_update.tpl', 142, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/jQuery.functions.pack.js"></script>
<script type="text/javascript" src="../js/jquery.dateLists.min.js"></script>
<link rel="stylesheet" type="text/css" href="../style/jquery.dateLists.css" />
<link rel="stylesheet" href="../style/autosuggest.css" type="text/css" />
<script type="text/javascript" src="../js/jquery.ausu-autosuggest.min.js"></script>

    <script type="text/javascript">
        $().ready(function() {  
        $(\'#date_of_birth\').dateDropDowns({dateFormat:\'yy-mm-dd\'});
		
		 $.fn.autosugguest({  
				   className: \'ausu-suggest\',
				  methodType: \'POST\',
					minChars: 2,
					  rtnIDs: true,
					dataFile: \'autocomplete.php?action=populateCity\'
			});  
   });  
    </script>
<script language="javascript">
function showLocal()
{
     if(document.getElementById(\'avail_L\').checked == true)
	  {  
		$(\'#avail_city\').show();
	 }
	if(document.getElementById(\'avail_L\').checked == false)
	 {  	
	   $(\'#avail_city\').hide();
	 }		
}
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}


</script>
'; ?>

<h2><?php echo $this->_tpl_vars['SubmitButton']; ?>
</h2>
<div class="tabarea">
<div class="tabcontent">
<form action="user_update.php?user_type_id=<?php echo $this->_tpl_vars['user_type_id']; ?>
&action=trans" method="post" name="frm_admin" id="frm_admin" enctype="multipart/form-data">
 <input type="hidden" name="is_coach" value="<?php echo $this->_tpl_vars['is_coach']; ?>
" />
 <input type="hidden" name="is_partner" value="<?php echo $this->_tpl_vars['is_partner']; ?>
" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">

	<?php if ($this->_tpl_vars['err_msgs'] != ""): ?>     
		<tr>
			<td class="simpleText" colspan="2"><ul><?php echo $this->_tpl_vars['err_msgs']; ?>
</ul></td>
		</tr>
		<tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
	 <?php endif; ?>
	 <?php if ($this->_tpl_vars['user_id'] != ''): ?>
	 <tr>
	   <td width="20%" align="left" valign="top" class="plaintxt">Member Type:</td>
	   <td width="20%" align="left" valign="top" class="plaintxt"><?php if ($this->_tpl_vars['is_coach'] == '0'): ?><input type="radio" name="user_type" value="1" />Coach<?php endif; ?>&nbsp;&nbsp;
	   <?php if ($this->_tpl_vars['is_partner'] == '0'): ?><input type="radio" name="user_type" value="3" />Training Partner<?php endif; ?></td>
	 </tr> 
	  <tr>
	 
		<td align="left" valign="top">&nbsp;</td>
		<td align="left" valign="top">&nbsp;</td>
	 </tr>
	 <?php endif; ?>
	 <?php if ($this->_tpl_vars['u_id'] != ''): ?>
	 <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Registration Number:</td>
		<td width="80%" align="left" valign="top"><label class="textbox" style="border:0px;"><?php echo $this->_tpl_vars['FabricArr']['registration_number']; ?>
</label></td>
	 </tr>
	 <?php endif; ?>
	  <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Email Address<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label>
		<input type="text" name="email" id="email" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['email']; ?>
" <?php if ($this->_tpl_vars['u_id'] != ''): ?> 
		readonly="" <?php endif; ?>/>
		</label></td>
	 </tr>
	 <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Password<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label>
		<input type="text" name="password" id="password" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['password']; ?>
"/>
		</label></td>
	 </tr>
     <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">UserID<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label>
		<input type="text" name="name" id="name" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['name']; ?>
"/>
		</label></td>
	 </tr>
	  <?php if ($this->_tpl_vars['is_coach'] == 1): ?>
     <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Paypal Email ID<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label>
		<input type="text" name="paypal_email_id" id="paypal_email_id" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['paypal_email_id']; ?>
"/>
		</label></td>
	 </tr>
	  <?php endif; ?>
     
	 <tr>
			<?php echo $this->_tpl_vars['DisplayImageControlStr']; ?>

     </tr>
	 <tr>
	 
		<td align="left" valign="top">&nbsp;</td>
		<td align="left" valign="top">&nbsp;</td>
	 </tr>

	  <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">City<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label><div class="ausu-suggest">
		<input type="text" name="citynm" id="citynm" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['city_name']; ?>
" autocomplete="off" onblur="CreateCountry()"/>
		<input name="city" id="city" type="hidden"  value="<?php echo $this->_tpl_vars['FabricArr']['city']; ?>
" autocomplete="off" />
		</div>
		</label></td>
	 </tr>

	<!-- <tr>
	  <td align="left" valign="top" class="plaintxt">Language :</td>
	  <td align="left" valign="middle"><label>
	   <select  class="selectbox" id="s2" multiple="multiple" name="language[]">
			<?php unset($this->_sections['lang']);
$this->_sections['lang']['name'] = 'lang';
$this->_sections['lang']['loop'] = is_array($_loop=$this->_tpl_vars['langArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['lang']['show'] = true;
$this->_sections['lang']['max'] = $this->_sections['lang']['loop'];
$this->_sections['lang']['step'] = 1;
$this->_sections['lang']['start'] = $this->_sections['lang']['step'] > 0 ? 0 : $this->_sections['lang']['loop']-1;
if ($this->_sections['lang']['show']) {
    $this->_sections['lang']['total'] = $this->_sections['lang']['loop'];
    if ($this->_sections['lang']['total'] == 0)
        $this->_sections['lang']['show'] = false;
} else
    $this->_sections['lang']['total'] = 0;
if ($this->_sections['lang']['show']):

            for ($this->_sections['lang']['index'] = $this->_sections['lang']['start'], $this->_sections['lang']['iteration'] = 1;
                 $this->_sections['lang']['iteration'] <= $this->_sections['lang']['total'];
                 $this->_sections['lang']['index'] += $this->_sections['lang']['step'], $this->_sections['lang']['iteration']++):
$this->_sections['lang']['rownum'] = $this->_sections['lang']['iteration'];
$this->_sections['lang']['index_prev'] = $this->_sections['lang']['index'] - $this->_sections['lang']['step'];
$this->_sections['lang']['index_next'] = $this->_sections['lang']['index'] + $this->_sections['lang']['step'];
$this->_sections['lang']['first']      = ($this->_sections['lang']['iteration'] == 1);
$this->_sections['lang']['last']       = ($this->_sections['lang']['iteration'] == $this->_sections['lang']['total']);
?>
             <option value="<?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id']; ?>
" <?php if (in_array ( $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id'] , $this->_tpl_vars['language_ids'] )): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_name']; ?>
</option>
            <?php endfor; endif; ?>
       </select>
	   </label></td>
	 </tr> -->
	  <tr>
			<td align="left" valign="top" class="plaintxt">Language :</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['langArr']) != 0): ?>
		 	<?php unset($this->_sections['lang']);
$this->_sections['lang']['name'] = 'lang';
$this->_sections['lang']['loop'] = is_array($_loop=$this->_tpl_vars['langArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['lang']['show'] = true;
$this->_sections['lang']['max'] = $this->_sections['lang']['loop'];
$this->_sections['lang']['step'] = 1;
$this->_sections['lang']['start'] = $this->_sections['lang']['step'] > 0 ? 0 : $this->_sections['lang']['loop']-1;
if ($this->_sections['lang']['show']) {
    $this->_sections['lang']['total'] = $this->_sections['lang']['loop'];
    if ($this->_sections['lang']['total'] == 0)
        $this->_sections['lang']['show'] = false;
} else
    $this->_sections['lang']['total'] = 0;
if ($this->_sections['lang']['show']):

            for ($this->_sections['lang']['index'] = $this->_sections['lang']['start'], $this->_sections['lang']['iteration'] = 1;
                 $this->_sections['lang']['iteration'] <= $this->_sections['lang']['total'];
                 $this->_sections['lang']['index'] += $this->_sections['lang']['step'], $this->_sections['lang']['iteration']++):
$this->_sections['lang']['rownum'] = $this->_sections['lang']['iteration'];
$this->_sections['lang']['index_prev'] = $this->_sections['lang']['index'] - $this->_sections['lang']['step'];
$this->_sections['lang']['index_next'] = $this->_sections['lang']['index'] + $this->_sections['lang']['step'];
$this->_sections['lang']['first']      = ($this->_sections['lang']['iteration'] == 1);
$this->_sections['lang']['last']       = ($this->_sections['lang']['iteration'] == $this->_sections['lang']['total']);
?>
			<input type="checkbox" name="language[]"  value="<?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id']; ?>
" <?php if ($this->_tpl_vars['language_ids'] != ''): ?> <?php if (((is_array($_tmp=$this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['language_ids']) : in_array($_tmp, $this->_tpl_vars['language_ids']))): ?>checked<?php endif; ?> <?php endif; ?> /> 
			<?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_name']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>	
	 <tr><td colspan="2">&nbsp;</td></tr> 
	
	
	 <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Skype Id:</td>
		<td width="80%" align="left" valign="middle"><label>
		<input type="text" name="skype_id" id="skype_id" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['skype_id']; ?>
"/>
		</label></td>
	 </tr>
	  <?php if ($this->_tpl_vars['is_coach'] == '1' || $this->_tpl_vars['is_partner'] == '1'): ?>
	   <tr>
		<td width="20%" align="left" valign="top" class="plaintxt">Availability<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle" class="plaintxt"><label>
		Local&nbsp;&nbsp;
		<input name="availability_type1" type="checkbox" value="L" id="avail_L" <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'L'): ?>checked=checked<?php endif; ?> onclick="showLocal()"/>
		Online&nbsp;&nbsp;<input name="availability_type2" type="checkbox" value="O" id="avail_O" <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'O'): ?>checked=checked<?php endif; ?>/>
		</label></td>
	  </tr>
	  <tr>
	 
		<td align="left" valign="top">&nbsp;</td>
		<td align="left" valign="top">&nbsp;</td>
	 </tr>
	 <tr id="avail_city"  <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'L'): ?> <?php else: ?> style='display:none' <?php endif; ?>>
		<td width="20%" align="left" valign="top" class="plaintxt">City (Local meet-up)<span class="red">*</span>:</td>
		<td width="80%" align="left" valign="middle"><label><div class="ausu-suggest">
		<input type="text" name="acity_name" id="acity_name" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['acity_name']; ?>
" onblur="CreateACountry()" autocomplete="off" />
		<input name="availability_city" id="availability_city" type="hidden"  value="<?php echo $this->_tpl_vars['FabricArr']['availability_city']; ?>
" autocomplete="off" />
		</div>
		</label></td>
	 </tr>
	 <tr>
			<td align="left" valign="top" class="plaintxt">About User:</td>
			<td align="left" valign="top" class="plaintxt"><label>
			<textarea rows="3" cols="23"  name="description" id="description"  onKeyDown="limitText(this.form.description,this.form.countdown,300);"
			onKeyUp="limitText(this.form.description,this.form.countdown,300);" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['description']; ?>
</textarea>
			</label>
			</td>
		
     </tr>
	 <tr>
			<td align="left" valign="top" class="plaintxt">&nbsp;</td>
			<td align="left" valign="top" class="plaintxt"><label> 
			Characters left <input readonly type="text" name="countdown" size="3" value="<?php echo $this->_tpl_vars['FabricArr']['char_left']; ?>
" class="tiny">
			</label></td>
	</tr>		
	      		
	 <?php endif; ?>
	  <tr>
			<td height="28" align="left" class="plaintxt">Active:</td>
			<td height="28" align="left" class="maintext">
				<input name="is_active" id="is_active" type="checkbox" class="maintext" value="Y" <?php if ($this->_tpl_vars['FabricArr']['is_active'] == 'Y'): ?>checked<?php endif; ?>>
			</td>
	</tr>
	 <tr>
	 
		<td align="left" valign="top">&nbsp;</td>
		<td align="left" valign="top">&nbsp;</td>
	 </tr>
	 
	 <tr>
	 	<td align="left" valign="top">&nbsp;</td>
		<td align="left" valign="top">
		<!--<input name="user_id" id="u_id" type="hidden" value="<?php echo $this->_tpl_vars['u_id']; ?>
"/>-->
		<input name="u_id" id="u_id" type="hidden" value="<?php echo $this->_tpl_vars['user_id']; ?>
"/>
		<input name="imageField" type="submit" class="addsadmin" value="<?php echo $this->_tpl_vars['SubmitButton']; ?>
" <?php if ($this->_tpl_vars['user_id'] == ''): ?> style="width:160px;"<?php else: ?>style="width:185px;"<?php endif; ?>/>
		<input name="" type="button"  class="cancel" value="Cancel" 
		onclick="window.location.href='<?php echo $this->_tpl_vars['link']; ?>
?IsPreserved=Y'"/></td>
	 </tr>
	 <tr>
	  	<td>&nbsp;</td>
	  	<td>&nbsp;</td>
	 </tr>
	</table>
</form>

	</div>
 </div>
    <p>&nbsp;</p>
	<iframe width=132 height=142 name="gToday:contrast:agenda.js" id="gToday:contrast:agenda.js" src="DateRange/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-300px; top:0px;"></iframe>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>